import request from "../utils/request.js";
// 积分商城

// 列表
const listUrl = '/api/point/goods/list';
// 详情
const detailsUrl = '/api/point/goods/details';
// 积分规则
const pointRule = '/api/set/point';

export function getPointList(data) {
  return request({
    url: listUrl,
    method: 'get',
    data
  })
}
// 积分规则
export function getpointRule(data) {
  return request({
    url: pointRule,
    method: 'get',
    data
  })
}


export function getPointDetail(id) {
  return request({
    url: detailsUrl + '/' + id,
    method: 'get',
  })
}